package com.qf.agro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.agro.pojo.SysRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ProjectName: smart-agriculture-parent
 * ClassName: SysRoleMapper
 * Author: chenyaosen
 * Date: 2023/7/3 11:53
 * Description:
 */
@Repository
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<Long> selectUserRole(Long UserId);

    void insertUserRole(@Param("userId") Long userId, @Param("roleIds") List<Long> roleIds);

    void deleteUserRole(Long userId);
}
